package lotteryModel;
//彩票的属性

public class Tickets {
    private String date;
    private String id;
    private String[] nums;
    private String times;
    private String state;

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getId() {
        return id;
    }

    public void setName(String id) {
        this.id = id;
    }

    public String[] getNums() {
        return nums;
    }

    public void setNums(String[] nums) {
        this.nums = nums;
    }

    public String getTimes() {
        return times;
    }

    public void setTimes(String times) {
        this.times = times;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }
    public Tickets(String date, String id, String[] nums, String times,String state) {
        super();
        this.date = date;
        this.id = id;
        this.nums = nums;
        this.times = times;
        this.state = state;
    }

    public Tickets() {
        super();
        // TODO Auto-generated constructor stub
    }

    @Override
    public String toString() {
        StringBuffer nums1 = new StringBuffer();
        for(int i = 0;i<nums.length;i++) {
            if(i!=0) {
                nums1.append(",");
            }
            nums1.append(nums[i]);
        }

        return nums1.toString();
    }

}